package com.hb.trans.mvp.model

import com.basiclib.base.BaseModel
import com.hb.trans.api.EndPoints
import com.hb.trans.bean.Base
import com.hb.trans.bean.ServeList
import com.hb.trans.mvp.contract.ServeContract
import io.reactivex.Observable
import javax.inject.Inject

class ServeModel @Inject constructor(var api: EndPoints) : BaseModel(), ServeContract.Model {
    override fun getServes(): Observable<Base<ServeList>> {
        return api.getServes()
    }
}
